package com.party.core.model.crowdfund;

import com.party.core.model.BaseModel;

/**
 * @program: party
 * @description: 众筹项目详情实体__多场活动
 * @author: Hua Qunhao
 * @create: 2019-03-20 17:29
 **/
public class ProjectInfoGradation extends BaseModel{

    //继续挑战
    public static  Integer CHALLENGESTATE_RUN = 1;
    //停止挑战
    public static  Integer  CHALLENGESTATE_STOP = 0;


    //当前众筹者正在筹第几阶段
    private String projectGradationId;
    //众筹项目id
    private String projectId;
    //是否继续挑战（默认为1）1：继续挑战 0：停止挑战
    private Integer challengeState;


    public String getProjectGradationId() {
        return projectGradationId;
    }

    public void setProjectGradationId(String projectGradationId) {
        this.projectGradationId = projectGradationId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public Integer getChallengeState() {
        return challengeState;
    }

    public void setChallengeState(Integer challengeState) {
        this.challengeState = challengeState;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ProjectInfoGradation)) return false;
        if (!super.equals(o)) return false;

        ProjectInfoGradation that = (ProjectInfoGradation) o;

        if (projectGradationId != null ? !projectGradationId.equals(that.projectGradationId) : that.projectGradationId != null)
            return false;
        if (projectId != null ? !projectId.equals(that.projectId) : that.projectId != null) return false;
        return challengeState != null ? challengeState.equals(that.challengeState) : that.challengeState == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (projectGradationId != null ? projectGradationId.hashCode() : 0);
        result = 31 * result + (projectId != null ? projectId.hashCode() : 0);
        result = 31 * result + (challengeState != null ? challengeState.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "ProjectInfoGradation{" +
                "projectGradationId='" + projectGradationId + '\'' +
                ", projectId='" + projectId + '\'' +
                ", challengeState=" + challengeState +
                '}';
    }
}
